package com.gzhu.knowledgeAdmin.entity;


import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.gzhu.knowledgeAdmin.common.valid.AddGroup;
import com.gzhu.knowledgeAdmin.common.valid.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.License;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.*;
/**
 * 质检结果表
 * 
 * @author yangminggui
 * @email giaogiao@gmail.com
 * @date 2024-02-23 22:58:54
 */
@Data
@TableName("check_result")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="check_result对象", description="质检结果表")
public class CheckResult implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	@NotNull(message = "修改必须指定自增id主键",groups = {UpdateGroup.class})
	@Null(message = "新增不能指定自增id主键",groups = {AddGroup.class})
	@ApiModelProperty(value = "自增id主键")
	private Integer id;

	@NotNull(groups = {AddGroup.class})
    @TableField(value = "rwjgnr_id")
	@ApiModelProperty(value = "任务结果内容id")
	private Long rwjgnrId;

	@NotNull(groups = {AddGroup.class})
    @TableField(value = "status")
	@ApiModelProperty(value = "检测结果状态。1- 未复核；2-已复核")
	private Integer status;

	@NotNull(groups = {AddGroup.class})
    @TableField(value = "total_rule_nums")
	@ApiModelProperty(value = "总共规则数量")
	private Integer totalRuleNums;

	@NotNull(groups = {AddGroup.class})
    @TableField(value = "pass_nums")
	@ApiModelProperty(value = "通过规则数量")
	private Integer passNums;

	@NotBlank(groups = {AddGroup.class})
    @TableField(value = "content_url")
	@ApiModelProperty(value = "检测后的内容URL")
	private String contentUrl;

	@NotBlank(groups = {AddGroup.class})
    @TableField(value = "gsid")
	@ApiModelProperty(value = "公司id")
	private String gsid;

	@TableField(fill = FieldFill.INSERT, value = "gmt_create")
	@ApiModelProperty(value = "创建时间")
	private Date gmtCreate;

	@TableField(fill = FieldFill.UPDATE,value = "gmt_modified")
	@ApiModelProperty(value = "修改时间")
	private Date gmtModified;

	@TableField(exist = false)
	@ApiModelProperty(value = "数据集名称")
	private String datasetName;

	@TableField(value = "rule_ids")
	@ApiModelProperty(value = "用到的规则id")
	private String ruleIds;

	@TableField(exist = false)
	@ApiModelProperty(value = "规则列表")
	private List<Rule> ruleList;
}
